package org.jeecg.modules.demo3.fly.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.demo3.fly.entity.assist.BLatitude;
import org.jeecg.modules.demo3.fly.entity.assist.OLatitude;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

/**
 * @Description: 地块信息
 * @Author: jeecg-boot
 * @Date:   2021-03-15
 * @Version: V1.0
 */
@Data
@TableName("axhk_land_management")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="axhk_land_management对象", description="地块信息")
public class AxhkLandManagement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**地块名称*/
	@Excel(name = "地块名称", width = 15)
    @ApiModelProperty(value = "地块名称")
    private String massifName;
	/**地块联系人*/
	@Excel(name = "地块联系人", width = 15)
    @ApiModelProperty(value = "地块联系人")
    private String massifMasterName;
	/**地块联系人联系方式*/
	@Excel(name = "地块联系人联系方式", width = 15)
    @ApiModelProperty(value = "地块联系人联系方式")
    private String massifMasterTelephone;
    /**地块面积*/
    @Excel(name = "地块面积", width = 15)
    @ApiModelProperty(value = "地块面积")
    private java.lang.String landArea;
	/**地块管理*/
	@Excel(name = "地块管理", width = 15)
    @ApiModelProperty(value = "地块管理")
    private String landManagement;

    @TableField(exist=false)
    private ArrayList<BLatitude> boundaryList;//边界点
    @TableField(exist=false)
    private ArrayList<OLatitude> obstacleList;//障碍点s
    @TableField(exist = false)
    private String fluckId; // 群id

    public AxhkLandManagement() {
    }

    public AxhkLandManagement(String massifName, String massifMasterName, String massifMasterTelephone, ArrayList<BLatitude> boundaryList, ArrayList<OLatitude> obstacleList) {
        this.massifName = massifName;
        this.massifMasterName = massifMasterName;
        this.massifMasterTelephone = massifMasterTelephone;
        this.boundaryList = boundaryList;
        this.obstacleList = obstacleList;
    }
}
